package com.LFLWZ.beans.Vo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collections;

/**
 * 按分类 搜索 排序 标签 查询课程 {type:1,2,3,4...标签
 *                                  keyword ：搜索
 *                                  order：排序
 *                                   filtrate：分类}
 */
public class CourseByType implements Serializable {
    /**
     * 标签
     */
    private String list;
    /**
     * 搜索
     */
    private String keyword;
    /**
     * 排序
     */
    private String order ;
    /**
     * 分类
     */
    private ArrayList<Integer> filtrate;
    /**
     * 当前页
     */
    private Integer page;
    /**
     * 每页多少条
     */
    private Integer size;

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }

    public String getList() {
        return list;
    }

    public void setList(ArrayList<Integer> list) {
        Collections.sort(list);
        StringBuffer sb=new StringBuffer();
        for (int i=0;i<list.size();i++){
            sb.append(list.get(i));
            if (i+1<list.size()){
                sb.append(",");
            }
        }
        this.list = String.valueOf(sb);
    }
    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public String getOrder() {
        return order;
    }

    public void setOrder(String order) {
        this.order = order;
    }

    public ArrayList<Integer> getFiltrate() {
        return filtrate;
    }

    public void setFiltrate(ArrayList<Integer> filtrate) {
        this.filtrate = filtrate;
    }
}
